import { createRouter, createWebHistory } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router';

import MainPage from "../views/mainPage/index.vue"

export const routelist: RouteRecordRaw[] = [
  {
    name: "mainPage",
    path: "/",
    component: MainPage,
    meta: { title: "主页面" },
    children: [],
    // children:[
    //   {
    //     name:"operatorlist",path:"/operatorlist",component:()=>import("../views/operator/index.vue"),
    //     meta:{
    //       title: "算子列表", 
    //       icon: "el-icon-s-data",
    //     },
    //   },
    //   {
    //     name:"addOp",path:"/addOperator",component:()=>import("../views/operator/addOp.vue"),
    //     meta:{
    //       title: "新增算子", 
    //       icon: "el-icon-s-data",
    //     },
    //   },
    // ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes: routelist
})
export default router